projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6880b4
)
(Ffont_spec): Check arguments.
author
Kenichi Handa
<handa@m17n.org>
Fri, 15 May 2009 02:49:07 +0000
(
02:49
+0000)
committer
Kenichi Handa
<handa@m17n.org>
Fri, 15 May 2009 02:49:07 +0000
(
02:49
+0000)
src/font.c
patch
|
blob
|
history
diff --git
a/src/font.c
b/src/font.c
index cdff0d678e6027d14867c74238164f97f6dcc216..19bc70dd976712ccec6c5ee1baa095c08646b8f4 100644
(file)
--- a/
src/font.c
+++ b/
src/font.c
@@
-4007,7
+4007,12
@@
usage: (font-spec ARGS...) */)
for (i = 0; i < nargs; i += 2)
{
- Lisp_Object key = args[i], val = args[i + 1];
+ Lisp_Object key = args[i], val;
+
+ CHECK_SYMBOL (key);
+ if (i + 1 >= nargs)
+ error ("No value for key `%s'", SDATA (SYMBOL_NAME (key)));
+ val = args[i + 1];
if (EQ (key, QCname))
{